package proxy.staticProxy;

/**
 * 使用聚合的方式
 */
public class CarLogProxy implements MoveAble{
    MoveAble car;

    public CarLogProxy(MoveAble car) {
        this.car = car;
    }

    @Override
    public void move() {
        System.out.println("日志开始。。。");
        car.move();
        System.out.println("日志结束。。。");
    }
}
